package com.educate.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户点赞表
 * @author xiongyu
 * @date 2021/12/9 20:56
 */

@Data
@ToString
@Accessors(chain = true)
public class ProblemLike {

    /**
     * Problem id
     */
    private Long id;

    /**
     * problem id
     */
    private Long problemId;

    /**
     * 用户名
     */
    private Long username;

    /**
     * 用户点赞时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date userLikeTime;

}
